# 1. 导入requests库
import requests

# 2. 准备测试数据
url = "https://www.baidu.com"

# 3. 发送接口请求
response = requests.get(url)

# 4. 查看响应结果
print(response.status_code)
print(response.text)